class User{
    // 理智体力
    def strength
    // 电脑分辨率，长
    def pcLong
    // 电脑分辨率，宽
    def pcWidth
    // 电脑缩放比例
    def pcEnlarge
    // 1-7战斗时间，单位：s
    def battleTime
    // 是否有月卡
    def monthlyCard

    User(strength, pcLong, pcWidth, pcEnlarge, battleTime, monthlyCard) {
        this.strength = strength
        this.pcLong = (int) (pcLong / pcEnlarge)
        this.pcWidth = (int) (pcWidth / pcEnlarge)
        this.pcEnlarge = pcEnlarge
        this.monthlyCard = monthlyCard
        this.battleTime = battleTime
    }

    /**
     * 体力可以刷1-7的次数
     * @return 1-7次数
     */
    int get17Num() {
        this.strength / 36;
    }
}
